package com.xm.settlement.commons.utils;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Administrator on 2017/2/8.
 */
public class VipUtils {

    //-----------------------------------------------------------------------
    //              START
    //-----------------------------------------------------------------------
    /**
     * 基础参数配置部分
     * 绝对不可以删除
     * */
    public static final String score_type = "score_type";
    public static final String taxation_type = "taxation_type";
    public static final String share_award_level = "share_award_level";
    public static final String cooperation_award = "cooperation_award";
    public static final String mutual_aid_award = "mutual_aid_award";
    public static final String agent_award_count = "agent_award_count";
    public static final String agent_award_range = "agent_award_range";
    public static final String cash_score = "cash_score";
    public static final String option_score = "option_score";
    public static final String shop_score = "shop_score";
    public static final String b_wallet = "b_wallet";
    public static final String agent_direct_level = "agent_direct_level";
    public static final String agent_indirect_level = "agent_indirect_level";
    //-----------------------------------------------------------------------
    //              END
    //-----------------------------------------------------------------------


    //---------------------------------------
    // 82 加权
    //---------------------------------------
    public static float weighting = 0.8f ;
    public static float surplusWeighting = 0.2f ;
    //-----------------------------------------
    //- 15% 计算规则
    //-----------------------------------------
    public static  float totalAgent = 0.15f ;
    public static  float rangeAgent = 0.03f ;
    //------------------------------------
    //  会员等级
    //------------------------------------
    public static int  vip_level_1 = 1;
    public static int  vip_level_2 = 2;
    public static int  vip_level_3 = 3;
    public static int  vip_level_4 = 4;
    public static int  vip_level_5 = 5;
    public static int  vip_level_6 = 6;
    // -----------------------------------------
    //   充值金额等级
    //------------------------------------------
    public static final int  level_1 = 3000;
    public static final int  level_2 = 9000;
    public static final int  level_3 = 60000;
    public static final int  level_4 = 90000;
    // 可能拓展部分
    public static final int  level_5 = 1000;


    // -----------------------------------------
    //   计算分配分数倍数 动态分配
    //------------------------------------------
    public static final int  multiple_1 = 2;
    public static final int  multiple_2 = 3;
    public static final int  multiple_3 = 4;
    public static final int  multiple_4 = 5;
    public static final int  multiple_5 = 6;

    // -----------------------------------------
    //   积分类别
    //------------------------------------------
    /** 1：现金积分: **/
    public static final int  score_1 = 1;
    /** 2：电子积分:  **/
    public static final int  score_2 = 2;
    /***   3:期权积分、 */
    public static final int  score_3 = 3;
    /*** 4:购物积分 */
    public static final int  score_4 = 4;

    // -----------------------------------------
    //   积分类别
    //------------------------------------------
    /**
     * VIP 级别
     * 1.会员
     * 2.普代
     * 3.区代
     * 4.市代
     * 5.省代
     * 6.董事
     * */
    public static final int vip_1 = 1;
    public static final  int vip_2 = 2;
    public static final int vip_3 = 3;
    public static final int vip_4 = 4;
    public static final int vip_5 = 5;
    public static final int vip_6 = 6;

    public static  final int[] vip_arr = new int[]{6,5,4,3,2};

    //-------------------------------------
    //  成为代理的条件
    //-------------------------------------



    /**
     * 分享奖 提成
     * */
    public final static Map<Integer,Integer> shareMap = new HashMap<Integer,Integer>();

    public final static Map<Integer,Integer> cashLevelArr = new HashMap<Integer,Integer>();




    static {

        shareMap.put(3000,1 );
        shareMap.put(9000,2);
        shareMap.put(30000,3);
        shareMap.put(60000,4);

        cashLevelArr.put(3000,3000);
        cashLevelArr.put(9000,9000);
        cashLevelArr.put(30000,30000);
        cashLevelArr.put(60000,60000);
    }



}
